package com.goldgov.utils;

/** 
 * @ClassName: TextUtil 
 * @Description: 存放引用静态数据
 */
public class DataUtil {
	
	public static final String NOTICE_YJ = "【学习预警】您当前学习时间未达到考核要求请尽快学习!";
	public static final String NOTICE_QX = "已取消请知晓!";
	public static final String NOTICE_XG = "已修改请知晓!";
	public static final String NOTICE_KS = "已开始请知晓!";
	public static final String NOTICE_QY = "已重新开始请知晓!";
	
	public static final String SHYK_ADD = "11"; //三会一课新增
	public static final String SHYK_UPDATE = "12";//三会一课修改
	public static final String SHYK_QX = "13";//三会一课取消
	public static final String SHYK_QY = "14";//三会一课发布
	public static final String YCJY_ADD = "21";//远程教育新增
	public static final String YCJY_UPDATE = "22";//远程教育修改
	public static final String YCJY_QX = "23";//远程教育取消
	public static final String YCJY_QY = "24";//远程教育发布
	public static final String XXYJ = "3";//监督预警
	public static final String SYSTEM_NOTICE = "1";//系统公告
	public static final String MESSAGE_TYPE_CUSTOM = "91";//自定义消息 //回复
	public static final String MESSAGE_TYPE_CUSTOM_UP = "92";//自定义消息 //点赞
	
	
	public static final String DZB = "631";//党支部 
	public static final String LHDZB = "632";// 联合党支部 
	public static final String LSDZB = "931 ";//临时党支部    
	public static final String LSLHDZB = "932";//   临时联合党支部 
	public static final String GWYGZBMDZB = "413";// 国务院工作部门党支部 
	
	
	public static final String[] BRANCH_CODING = {"423","413","631","632","931","932"};// 此编码下都是有人的支部 
	
	
	//通知模板类型
	/**
	 * 三会一课新增修改模板类型
	 */
	public static final String TEMPLATE_TYPE_SHYK_ADDORUPDATE = "11";//
	/**
	 * 三会一课取消通知模板类型
	 */
	public static final String TEMPLATE_TYPE_SHYK_QX = "13";// 
	/**
	 * 远程教育新增修改通知模板类型
	 */
	public static final String TEMPLATE_TYPE_YCJY_ADDORUPDATE = "21";// 
	/**
	 * 远程教育取消通知模板类型
	 */
	public static final String TEMPLATE_TYPE_YCJY_QX = "23";// 
	
	/**
	 * 学习预警通知模板类型
	 */
	public static final String TEMPLATE_TYPE_XXYJ = "30";// 
	
	private static final String[] VIDEO_FORMATS = {"wmv","asf","asx","rm","rmvb","mpg","mpeg","mpe","3gp","mov","mp4","m4v","avi","dat","mkv","flv","vob"};
	public static Boolean isVideo (String type) {
		Boolean fase = false;
		for (String string : VIDEO_FORMATS) {
			if (type.equals(string)) {
				fase = true;
				break;
			}
		}
		return fase;
	}
	public static String videoImgUrl(String attachId) {
		String url = "/image/attachmentvideoimg/" +attachId+ ".jpg";
//		String url = "/image/attachmentvideoimg/video-default.png";
		return url;
	}
	
	
	
}
